package com.xizi.秋招笔试.cv;

/**
 * @author xizizzz
 * @description: TODO
 * @date 2021-8-30下午 07:30
 */
public class Test2 {

    public int purchasePlanNumber(int[] clothes, int[] shoes, int x) {
        int res = 0;
        for (int i = 0; i < clothes.length; i++) {
            for (int j = 0; j < shoes.length; j++) {
                if (clothes[i] + shoes[j] <= x) {
                    res++;
                }
            }
        }
        return res;
    }
}
